package cn.dnuifood_cjy.dnuifood_16110100529.service;


import cn.dnuifood_cjy.dnuifood_16110100529.JavaBean.ResultBean;
import cn.dnuifood_cjy.dnuifood_16110100529.JavaBean.UserBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface UserService {
    @GET("userLogin.do")
    Call<UserBean> doLogin(@Query("username") String username,
                           @Query("userpass") String userpass);

    @GET("userRegister.do ")
    Call<ResultBean> doRegister(@Query("username") String username,
                                @Query("userpass") String userpass,
                                @Query("mobilenum") String mobilenum,
                                @Query("address") String address,
                                @Query("comment") String comment
    );
    @GET("getUserById.do")
    Call<UserBean> getUserById(
            @Query("user_id") String user_id
    );

    @GET("updateUserById.do")
    Call<ResultBean> updateUserById(
            @Query("user_id") String user_id,
            @Query("username") String username,
            @Query("userpass") String userpass,
            @Query("mobilenum") String mobilenum,
            @Query("address") String address
    );
}
